package com.ty.skysystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ty.common.utils.PageUtils;
import com.ty.skysystem.entity.CarriersEntity;
import com.ty.skysystem.entity.vo.CarriersGoodsVo;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 承运单信息表: 用于存放和管理承运单信息 外键列: user_id => 外键表: User
 *
 * @author tianyuzhu
 * @email 1659770218@QQ.COM
 * @date 2020-12-11 15:56:09
 */
public interface CarriersService extends IService<CarriersEntity> {

  PageUtils queryPageHistoryCarriers(Map<String, Object> params);

  PageUtils queryPage(Map<String, Object> params);

  PageUtils queryPageUnscheduledCarriers(Map<String, Object> params);

  boolean saveCarriersGoods(CarriersGoodsVo carriersGoodsVo);

  PageUtils queryPageScheduled(Map<String, Object> params);

  boolean updateStateByIds(Long[] carriersIds);

  PageUtils receiveCarriers(Map<String, Object> params);

  BigDecimal settleAccount(Integer carriersId);

  PageUtils settleAccountsReceiveCarriers(Map<String, Object> params);

    PageUtils accountingForTransportationCosts(Integer page, Integer limit, String teamName);
}
